package fl.ass.service.service;

import cmm.service.core.framework.biz.IBaseBiz;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.project.dto.PrjPrdDtlSchRDTO;
import fl.ass.facade.condition.AssDealCarQueryCondition;
import fl.ass.facade.condition.AssTrailCarDQueryCondition;
import fl.ass.facade.condition.AssTrailCarHvQueryCondition;
import fl.ass.facade.condition.AssTrailCarMQueryCondition;
import fl.ass.facade.dto.AssTrailCarMDTO;
import fl.ass.facade.dto.ProductStatusLogDTO;
import fl.ass.service.po.AssTrailCarM;

import java.util.List;

/**
 * @Description: 拖车信息主表 服务层接口
 * @Description:持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description:业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IAssTrailCarMService extends IBaseBiz<AssTrailCarM, AssTrailCarMDTO, AssTrailCarMQueryCondition>{
	/**
	 * 导出拖车模块信息
	 * @param condition
	 * @param orgCd
	 * @return
	 * @throws BaseException
	 */
	public String exportAssInfo(AssTrailCarDQueryCondition qc1, AssDealCarQueryCondition qc2,AssTrailCarHvQueryCondition qc3, String orgCd, String eFlag)throws BaseException;

    /**
     * 根据渠道Id关联明细表查询
     * @param condition
     * @return
     * @throws BaseException
     */
    public List<AssTrailCarMDTO> selectListByChnIds(AssTrailCarMQueryCondition condition) throws BaseException;

    List<Long> searchPrjPrdPaySchIdsByPrjPrdDtlId(Long prjPrdDtlId) throws BaseException;

    /**
     * 根据流程流转更新疫情支付表状态
     * @throws BaseException
     */
    void updateYQPrdStsCdByFlow(ProductStatusLogDTO productStatusLogDTO) throws BaseException;

    /**
     * 查询当前车绑定的未结清YQ支付表且当前支付表是否有剩余可用资金
     * @param prjPrdDtlId
     * @return
     * @throws BaseException
     */
    boolean checkRestFund4YQ(Long prjPrdDtlId, Long cstId) throws BaseException;

    /**
     * 根据项目产品明细id校验是否可发起处置或转优车流程（未放款 或 已放款+非正常就不允许发起）
     * @param assMainId
     * @return
     * @throws BaseException
     */
    boolean checkDealOrTransUsedFlowStart(Long assMainId) throws BaseException;

}
